import 'package:json_annotation/json_annotation.dart';

part 'wechat_pay_info.g.dart';

@JsonSerializable()
class WechatPayInfo extends Object {
  @JsonKey(name: 'appid')
  String appid;

  @JsonKey(name: 'partnerid')
  String partnerid;

  @JsonKey(name: 'package')
  String package;

  @JsonKey(name: 'timestamp')
  String timestamp;

  @JsonKey(name: 'prepayid')
  String prepayid;

  @JsonKey(name: 'noncestr')
  String noncestr;

  @JsonKey(name: 'sign')
  String sign;

  WechatPayInfo(
    this.appid,
    this.partnerid,
    this.package,
    this.timestamp,
    this.prepayid,
    this.noncestr,
    this.sign,
  );

  factory WechatPayInfo.fromJson(Map<String, dynamic> srcJson) =>
      _$WechatPayInfoFromJson(srcJson);
}
